home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
pcboard
/
bcmx120.zip
/
RAND.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-06-10
|
984b
|
88 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
String STRING001
String STRING002
;------------------------------------------------------------------------------
STRING001 = TokenStr()
Tokenize STRING001
If (TokCount() <> 2) Then
PrintLn "ERROR (rand): incorrect number of parameters"
Endif
STRING002 = GetToken()
INTEGER001 = GetToken()
INTEGER002 = Random(Time())
INTEGER002 = Random(INTEGER001 - 1) + 1
If (Exist(STRING002 + String(INTEGER002))) Then
DispFile STRING002 + String(INTEGER002), 1 + 4
ElseIf (Exist(PPEPath() + STRING002 + String(INTEGER002))) Then
DispFile PPEPath() + STRING002 + String(INTEGER002), 1 + 4
Else
PrintLn "Error (rand.ppe): cannot find: " + STRING002 + String(INTEGER002)
Endif
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 5 Goto
; 5 Let
; 2 PrintLn
; 3 If
; 2 DispFile
; 1 Tokenize
;
;
; ■ Functions used :
;
; 11 +
; 1 -
; 1 <>
; 3 !
; 2 Random()
; 1 Time()
; 5 String()
; 2 PPEPath()
; 2 GetToken()
; 2 Exist()
; 1 TokenStr()
; 1 TokCount()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 3 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------